<style>
  .main {
    position: relative;
    display: flex;
    flex-direction: row;
    margin-left: 40px;
  }

  .header-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 48px;
    width: 100%;
  }

  .content {
    margin-top: 48px;
  }

  nav {
    display: flex;
    text-align: center;
    align-items: center;
    height: 48px;
    background-color: olivedrab;
  }

  nav ul li {
    display: inline-block;
    padding-left: 14px;
    text-decoration: none;
    align-items: center;
  }

  nav ul li a {
    font-size: 18px;
    color: white;
    font-weight: bold;
  }

  nav ul li a:hover {
    color: black;
  }

  nav ul li a:active {
    color: red;
  }

  nav ul li a:focus {
    color: red;
  }
</style>

<main class="main">
  <div class="header-nav">
    <nav>
      <app-comment-details/>
      <p>======age = {{ appStore.age() }}</p>
      <ul>
        <li><a routerLink="/home">基础</a></li>
        <li><a routerLink="/signal">signal</a></li>
        <li><a routerLink="/deferr">DeferrableViews</a></li>
        <li><a routerLink="/img-optimization">NgOptimizedImage</a></li>
        <li><a routerLink="/hydration">Hydration</a></li>
        <li><a routerLink="/cdk">CDK组件构建工具</a></li>
      </ul>
    </nav>
  </div>
  <div class="content">
    <router-outlet></router-outlet>
  </div>
</main>
